AGGREGATE function聚合函數
count
avg
sum
max
min
select count(*) from employee;
select count(sup_id) from employee;
-- 取得員工人數
select count(*) from employee where birth >'1970-01-01' and sex = 'F';
-- 取得所有出生於1970-01-01之後的女性員工人數
select avg(salary) from employee;
-- 取得員工平均薪水
select sum(salary) from employee;
-- 取得員工薪水總和
select max(salary) from employee;
-- 取得最高的薪水